package com.lucy.rabc.params;

import com.lucy.rabc.domain.extend.PostExtend;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


@Data
@ApiModel(value = "岗位新建参数")
public class PostUpdateParams {
    @NotNull(message = "岗位ID不可为空")
    @ApiModelProperty(value = "岗位ID",name = "id")
    Long id;

    @NotBlank(message = "岗位编码不可为空")
    @ApiModelProperty(value = "岗位编码")
    String postCode;

    @NotBlank(message = "岗位名称不可为空")
    @ApiModelProperty(value = "岗位名称")
    String postName;


    @Min(1)
    @ApiModelProperty(value = "岗位排序")
    Integer postSort;


    @ApiModelProperty(value = "岗位备注")
    String remark;

    @ApiModelProperty(value = "岗位拓展信息")
    PostExtend postExtend;
}
